#include "pwm_led.h"
#include <stdio.h>
#include <unistd.h>

void pwm_breath_effect(int duration_ms) {
    printf("🚀 开始呼吸灯效果\n");
    for (int i = 0; i < 100; i++) {
        printf("🔆 PWM亮度: %d%%\n", i);
        sleep(duration_ms * 10);
    }
    for (int i = 100; i >= 0; i--) {
        printf("🔅 PWM亮度: %d%%\n", i);
        sleep(duration_ms * 10);
    }
    printf("✅ 呼吸灯效果完成\n");
}
